<?php


//获取主页地址，用于点赞

    header("Access-Control-Allow-Origin: *");
    header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
include "../../../config.php";




    $page_user = $_REQUEST['page_user'];//你是哪个page/user操作的。dakota2tg还是wowp？
    $now_time = date("Y-m-d H:i:s");
    $_url=select_lines_all_items($table_prefix."facebook_page_url",'nid asc',
        "like_status not like '%{$page_user}%' or like_status is null ",'1');

    //把读出的这条数据表格一下，status 值为当前时间
    $_data['ai_like_status']=$_url[0]['like_status'].";".$page_user;
    $_sql=update_date($table_prefix."facebook_page_url",$_data,"nid",$_url[0]['nid']);
    //执行语句
    mysql_query($_sql) or die("Error: " . mysql_error().$_sql);

$arr['status'] = 200;
$arr['info'] = $_url;
die(json_encode($arr));


?>


